import Menu from './src/Menu.vue'
import MenuGroup from './src/MenuGroup.vue'
import MenuItem from './src/MenuItem.vue'
import SubMenu from './src/SubMenu.vue'

Menu.Group = MenuGroup
Menu.Item = MenuItem
Menu.Sub = SubMenu

Menu.install = function (Vue) {
  Vue.component(Menu.name, Menu)
  Vue.component(MenuGroup.name, MenuGroup)
  Vue.component(MenuItem.name, MenuItem)
  Vue.component(SubMenu.name, SubMenu)
}

export default Menu
